<?php
require_once("../PHPMySQLiDatabaseClass/MysqliDb.php");
require("../db_config.php");
$dbConfig = new dbConfig();
$db = new MysqliDb
(
    $dbConfig->host,
    $dbConfig->account,
    $dbConfig->pwd,
    'student',
);
$data = array("allow"=>0);
if ($db->update ('task', $data))
{
    echo $db->count . ' records were updated';
}
else
{
    echo 'update failed: ' . $db->getLastError();
}
?>